package org.zfes.snowier.cloud.zbss.cms.words.service;

import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.zfes.snowier.core.data.DataSet;
import org.zfes.snowier.cloud.zbss.cms.words.model.CmsWordsSensitive;
public interface ICmsWordsSensitiveService{

	 Optional<CmsWordsSensitive> loadCmsWordsSensitiveById(Long id);
	
	 void createCmsWordsSensitive(CmsWordsSensitive cmsWordsSensitive);
	
	 void updateCmsWordsSensitive(CmsWordsSensitive cmsWordsSensitive);

	 void deleteCmsWordsSensitive(Long id);
	
	 DataSet loadCmsWordsSensitiveDataSet(Map<String, Object> params);
	 
	//后台：敏感词批量删除(逻辑删除)
	 void deleteCmsWordsSensitiveBatch(String idBatch);
	//被调用：查看留言评论等文本中是否存在敏感词（返回首个敏感词, 起始位置  终止位置）
	 List<String>  isExistSensitive(String content);
	//被调用：替换掉内容中的所有敏感词
	 String replace(String content); 
	 
 	void setCmsWordsSensitiveStatus(Long id, Byte status);
}